package cn.touna.jss.common.aspect.entity;

import cn.touna.jss.common.util.JssConstant;
import cn.touna.risk.api.entity.RequestEntity;

import java.util.Date;

/**
 * \* User: MeiZhongHao
 * \* Date: 2018-06-11
 * \* Time: 17:37
 * \* Description:
 * \
 */
public class CacheCreditQueryRequest extends RequestEntity {

    /**
     * CRS流水号
     */
    private String crNo;

    /**
     * 身份证号码
     */
    private String idCard;
    /**
     * 手机号码
     */
    private String mobile;

    /**
     * 发起查询时间
     */
    private Date queryTime;

    /**
     * 是否查询缓存
     */
    private String cacheQueryAble = JssConstant.N;

    /**
     * 缓存有效期
     */
    private Integer expiryDate;

    /**
     * 缓存策略，主要对应CacheStrategy的实现类
     */
    private String cacheStrategy;
    private Integer status;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCrNo() {
        return crNo;
    }

    public void setCrNo(String crNo) {
        this.crNo = crNo;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Date getQueryTime() {
        return queryTime;
    }

    public void setQueryTime(Date queryTime) {
        this.queryTime = queryTime;
    }

    public String getCacheQueryAble() {
        return cacheQueryAble;
    }

    public void setCacheQueryAble(String cacheQueryAble) {
        this.cacheQueryAble = cacheQueryAble;
    }

    public Integer getExpiryDate() {
        return expiryDate;
    }

    public void setExpiryDate(Integer expiryDate) {
        this.expiryDate = expiryDate;
    }

    public String getCacheStrategy() {
        return cacheStrategy;
    }

    public void setCacheStrategy(String cacheStrategy) {
        this.cacheStrategy = cacheStrategy;
    }

    public boolean getCacheQueryAbleBoolValue() {
        return JssConstant.Y.equals(cacheQueryAble);
    }

}